package model.room
{
	import core.Model;
	
	import events.ItemEvent;
	
	import flash.events.EventDispatcher;

	public class ItemModel extends EventDispatcher
	{
		private var _model:Model = Model.getInstance();
		
		public function ItemModel()
		{

		}
		
		public function recieveItem(itemDatas:Array):void
		{
			var itemEvent:ItemEvent = new ItemEvent(ItemEvent.ITEM_ARRIVAL);
			itemEvent.itemDatas = itemDatas;
			dispatchEvent(itemEvent);
		}
		
		public function recieveUseResult(itemId:int,count:int):void
		{
			var event:ItemEvent = new ItemEvent(ItemEvent.ITEM_USE_RESULT);
			event.itemId = itemId;
			event.count = count;
			dispatchEvent(event);
		}
	}
}